package Huihu.src.IO;

import java.io.*;

public class Xie {
    public static void main(String[] args) throws IOException {
        Writer writer=new FileWriter("Libs/2.txt");
        //只读写一个字
        writer.write("嗨");
        //读写字符数组
        char [] chs=new char[]{'!','中','国','你','好'};
        writer.write(chs);
        //读写一个字符串
        writer.write("，我爱中国。");
        writer.close();
    }
}
